package framework.widgets;

import pixi.core.textures.Texture;

class Button extends SkinItem {

	private var _texture:Texture;
	private var _stateSelected:Bool;

	public function new(texture:Texture) {
		super(texture);
		_stateSelected = false;

		this.on("pointerdown", this._onPointerDown);
		this.on("pointerup", this._onPointerDown);
	}

	/*
		Set button selected state
	*/
	public function setStateSelected(value:Bool):Void{
		_stateSelected = value;
	}

	public function getStateSelected():Bool{
		return _stateSelected;
	}

	private function _onPointerDown():Void{

	}

	private function _onPointerUp():Void{

	}

	private function _updateButtonState(){
		if(_stateSelected){
			if(this.visible){

			}
		}
	}

}